<?php
/************************FoxPHP威客系统************************/
/*                                                            */
/*  FoxPHP.Com (C)2006-2016 FoxPHP Inc.                       */
/*  This is NOT a freeware, use is subject to license terms   */
/*  FoxPHP威客系统是商业软件,使用于商业用途请购买授权         */
/*  V3.0 2016.3                                               */
/*  foxphp@aliyun.com                                         */
/*  http://www.foxphp.com                                     */
/*                                                            */
/**************************************************************/

namespace Member\Controller;
use Think\Controller;
class InfoController extends IndexController {

    public function indexAction(){
		
		$model=new \Member\Model\MemberModel();
		
		$member=$model->UidGetMember($this->uid);
		
		$year=FormatDate("Y",$member['birthday']);
					
		$month=FormatDate("m",$member['birthday']);

		$day=FormatDate("d",$member['birthday']);


		//Year Month Day

		$GetYear=$GetMonth='';

		$nowyear=FormatDate("Y",NowTime());

		for($i=($nowyear);$i>=($nowyear-100);$i--){
			
			 if($year==$i){
				  $yearselected=' selected="selected"';
			 }else{
				  $yearselected='';
			 }
			
			  $GetYear.='<option value="'.$i.'"'.$yearselected.'>'.$i.'</option>';
			
		}
			
		for($i=1;$i<=12;$i++){
			
			 if($month==$i){
				  $monthselected=' selected="selected"';
			 }else{
				  $monthselected='';
			 }
			 
			  $GetMonth.='<option value="'.$i.'"'.$monthselected.'>'.$i.'</option>';
		}
		
		
		$this->assign('day',$day);
		$this->assign('GetYear',$GetYear);
		$this->assign('GetMonth',$GetMonth);
		
		$this->display();	
    }
	
}